﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace compositecontrol
{
    public partial class property : UserControl
    {
        public property()
        {
            InitializeComponent();
        }

        private int mUnitsOnHand;
        public int UnitsOnHand
        {
            get { return mUnitsOnHand; }
            set { mUnitsOnHand = value; }
        }
        


        //thêm 1 thuộc tính vào usrecontrol
        private string HienThi;
        public string TenHienThi 
        {
            get { return HienThi; }
            set { HienThi = value; }
        }

        private void property_Load(object sender, EventArgs e)
        {
            label1.Text = TenHienThi;
           
        }
        

    }
}
